package net.tolkv.tdd;

import java.util.UUID;

import com.tolkv.tdd.ws.AmazonItem;

public class AmazonItemAdapter extends Item{

	public AmazonItemAdapter(UUID id) {
		super(id);
	}
	
	public AmazonItemAdapter(AmazonItem aItem) {
		super(UUID.randomUUID());
		this.aItem = aItem;
	}

	public AmazonItem getaItem() {
		return aItem;
	}

	public void setaItem(AmazonItem aItem) {
		this.aItem = aItem;
	}

	private AmazonItem aItem;

	public boolean equals(Object obj) {
		return aItem.equals(obj);
	}
	
	public long getAmazonId(){
		return aItem.getId();
	}

	public UUID getId() {
		return UUID.randomUUID();
	}

	public String getName() {
		return aItem.getName();
	}

	public int getPrice() {
		return (int)aItem.getPrice();
	}

	public int getQuantity() {
		return aItem.getQuantity();
	}

	public void setId(long value) {
		aItem.setId(value);
	}

	public void setName(String value) {
		aItem.setName(value);
	}

	public void setPrice(float value) {
		aItem.setPrice(value);
	}

	public void setQuantity(int value) {
		aItem.setQuantity(value);
	}

	public String toString() {
		return aItem.toString();
	} 
}
